<?php
$selected_cat = isset($selected_cat) ? $selected_cat : 1;
$selected_cat_setting = array(
    'table_name' => 'catactu',
    'key_field' => 'id',
    'value_field' => 'nomfr'
);
?>
<div id="wrapper-content">    
    <?php echo form_open_multipart('actualite/add_news') ?>
  <table class="titrepage" width="100%">
            <tr>
                <td >Ajouter Actualit&eacute;</td>
                <td align="right"> </td>
            </tr>
        </table>
            <table class="list" cellpadding="10px" cellspacing="0" width="100%">
            <tr>
                <td><label for="fr_title">Titre (Francais)</label></td>
                <td><input type="text" size="50" name="txtFrTitle" value="<?php echo set_value('txtFrTitle') ?>"><?php echo form_error('txtFrTitle'); ?></td>
            </tr>
            <tr>
                <td><label for="en_title">Titre (Anglais)</label></td>
                <td><input type="text" size="50" name="txtEngtitle" value="<?php echo set_value('txtEngtitle') ?>"></td>
            </tr>
            <tr>
                <td><label for="spa_title">Titre (Espagnol)</label></td>
                <td><input type="text" size="50" name="txtSpainTitle" value="<?php echo set_value('txtSpainTitle') ?>"></td>
            </tr>
            <tr>
                <td><label for="ger_title">Titre (Allemagne)</label></td>
                <td><input type="text" size="50" name="txtGermanTitle" value="<?php echo set_value('txtGermanTitle') ?>"></td>
            </tr>
            <tr>
                <td><label for="dut_title">Titre (Hollande)</label></td>
                <td><input type="text" size="50" name="txtDutchTitle" value="<?php echo set_value('txtDutchTitle') ?>"></td>
            </tr>
            <tr>
                <td><label for="cat">Cat&eacute;gorie</label></td>
                <td><?php echo form_dropdown('categorie', dropdown_data($selected_cat_setting), $selected_cat) ?></td>
                <td></td>
            </tr>
            <tr>
                <td>Image</td>
                <td><input type="file" name="userfile" size="20"><?php if (isset($error))
        echo $error; ?></td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="frDesLink">Description(Francais)</a></td>
                <td colspan="2">
                    <div class="fckFrenchEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtFrDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400');
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="enDesLink">Description(Anglais)</a></td>
                <td colspan="2">
                    <div class="fckEnglishEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtEnDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400');
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="spDesLink">Description(Espagnol)</a></td>
                <td colspan="2">
                    <div class="fckSpanishEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtSpDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400');
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="germanDesLink">Description(Allemagne)</a></td>
                <td colspan="2">
                    <div class="fckGermanEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtGeDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400');
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="dutchDesLink">Description(Hollande)</a></td>
                <td colspan="2">
                    <div class="fckDutchEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtDuctchDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400');
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" name="submit" value="Ajouter"/a></td>
                </td>
            </tr>

        </table>
        </form>

</div>